<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>


<div class="login-logo">
        <a href="../../index2.html"><spring:message code='project.name'/></a>
      </div><!-- /.login-logo -->
      <div class="login-box-body" ng-controller="loginController">
        <p class="login-box-msg"><spring:message code="login.header" /></p>
        <form method="post" action="j_spring_security_check">
          <div class="form-group has-feedback">
            <input name="j_username" id="j_username" type="text" class="form-control" placeholder="<spring:message code='sample.email' />"/>
            <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
          </div>
          <div class="form-group has-feedback">
            <input name="j_password" id="j_password" type="password" class="form-control" placeholder="Password"/>
            <span class="glyphicon glyphicon-lock form-control-feedback"></span>
          </div>
          <div class="row">
            <div class="col-xs-8">    
              <div class="checkbox icheck">
                <label>
                  <input type="checkbox"> Remember Me
                </label>
              </div>                        
            </div><!-- /.col -->
            <div class="col-xs-4">
              <button type="submit" name="submit" class="btn btn-primary btn-block btn-flat"><spring:message code="login.signIn" /></button>
            </div><!-- /.col -->
          </div>
        </form>

        <div class="social-auth-links text-center">
          <p>- OR -</p>
          <a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-facebook"></i> Sign in using Facebook</a>
          <a href="#" class="btn btn-block btn-social btn-google-plus btn-flat"><i class="fa fa-google-plus"></i> Sign in using Google+</a>
        </div><!-- /.social-auth-links -->

        <a href="#">I forgot my password</a><br>
        <a href="register.html" class="text-center">Register a new membership</a>

      </div><!-- /.login-box-body -->
<script src="<c:url value='/resources/js/pages/login.js' />"></script>

<!-- jQuery 2.1.3 -->
    <script src="<c:url value='/resources/plugins/jQuery/jQuery-2.1.3.min.js' />"></script>
    <!-- Bootstrap 3.3.2 JS -->
    <script src="<c:url value='/resources/bootstrap/js/bootstrap.min.js' />"></script>
    <!-- iCheck -->
    <script src="<c:url value='/resources/plugins/iCheck/icheck.min.js' />"></script>
    <script>
      $(function () {
        $('input').iCheck({
          checkboxClass: 'icheckbox_square-blue',
          radioClass: 'iradio_square-blue',
          increaseArea: '20%' // optional
        });
      });
    </script>